package com.example.administrator.overallsituation;




import android.content.Context;

import com.example.administrator.commonlibrary.BuildConfig;
import com.example.administrator.commonlibrary.bese.BaseAppliction;
import com.example.administrator.commonlibrary.thirdparty.JPushConfig;
import com.example.administrator.thirdparty.MyBugly;
import com.tencent.bugly.beta.Beta;


public class SampleApplicationLike extends BaseAppliction {
    public Context context;

    @Override
    public void onCreate() {
        super.onCreate();
        context = getApplicationContext();
        //腾讯bugly  由于bugly不能再线程中初始化
        MyBugly.init(this);
        //BuildConfig.DEBUG 在依赖的Library中使用需要在build.gradle中配置，否则正式包也是true，这里没有配置 只能在App中使用
        JPushConfig.init(BuildConfig.DEBUG, context);//极光推送
    }

    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);
        // 安装tinker
        Beta.installTinker();
    }


}
